package com.etl.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(1, "success"),
    SERVER_ERROR(500,"服务器异常！"),
    PARAMS_ERROR(600,"参数错误！"),
    COOKIE_MISSING(1000, "cookie缺失"),
    SQL_CHECK_ERROR(1001,"SQL内含有非法操作！"),
    SQL_EXECUTE_ERROR(1002,"SQL查询数据，执行失败！"),
    BATCH_SYSTEM_NAME_EXIST(1003,"该系统抽取任务已存在！"),
    BATCH_SYSTEM_NAME_NOT_EXIST(1004,"该系统抽取任务不存在！"),
    TASK_IS_RUNNING(1005,"任务正在执行中"),

    DB_NOT_EXIST(1006,"抽取任务对应数据库不存在！"),

    FILE_PARAM_ERROR(1007, "文件超出规定大小"),
    FILE_TYPE_ERROR(1008, "文件类型错误"),

    DB_CONNECTION_ERROR(2000,"数据库连接失败！"),
    DB_SYSTEM_NAME_EXIST(2001,"该系统数据库已存在！"),
    DB_SYSTEM_NAME_NOT_EXIST(2002,"该系统数据库不存在！"),
    KETTLE_DB_ERROR(2003,"资源库连接失败"),
    HX_SEND_MESSAGE_USER_LIST_ERROR(2004,"鸿信发送通知人为空"),
    ETL_TASK_ERROR(2005,"ETL任务抽取失败，详情请查看日志"),
    UC_DB_INFO_ERROR(2006,"uc系统数据库信息不存在"),
    MOUNT_TASK_MAIN_ERROR(2007,"执行错误：未查到挂载主表数据"),
    MOUNT_TASK_DETAIL_ERROR(2008,"执行错误：未查到挂载脚本"),
    NO_PERMISSION(2009,"你无权删除其他人的任务"),
    NO_MAPPER_DB_TYPE(2010,"未找到数据库类型匹配项"),



    BATCH_EXIST_TABLE(2110,"该批次下已经存在当前表"),

    ;
    private int code;
    private String errMsg;

    ResultEnum(int code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }
}
